package com.wh.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data  //相当于 getter和setter方法
@AllArgsConstructor  //全参构造器
@NoArgsConstructor //空参构造器
@TableName("student")  //如果表和类同名，则可以省略
public class Student {
        @TableId(type = IdType.AUTO)
        private Integer sid;
        private String sname;
        private String gender;
        private String major;
        private Integer age;
}
